package com.loveling.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by liang on 2017/5/26.
 */

@RestController
public class HelloController {

    @RequestMapping("/")
    public String hello() {
        return "Hello World";
    }

    //  http://127.0.0.1:8080/zeroexception
    @RequestMapping("/zeroexception")
    public int zeroException() {
        return 100 / 0;
    }

}
